import {Roles} from './post-and-role.ts'
import {CameraStatus} from './camera.ts'

export interface SystemUserInfo {
  msg: string
  code: number
  roleIds: null[]
  data: SystemUserInfoData
  postIds: null[]
  roles: Role[]
  posts: Post[]
}

export interface SystemUserInfoData {
  createBy: string
  createTime: string
  updateBy: null
  cameraStatus: CameraStatus
  updateTime: null
  remark: null
  userId: number | string
  deptId: null
  userName: string
  nickName: string
  email: string
  phonenumber: string
  contactPhonenumber: null
  contactName: null
  address: null
  idCard: null
  birth: string
  roomName: null
  roomId: null
  managers: [] | null
  sex: string
  age: null
  floorId: any | null
  avatar: string
  password: string
  status: string
  delFlag: string
  loginIp: string
  loginDate: null
  dept: null
  roles: Roles[]
  roleIds?: number
  postIds: null
  roleId: null
  buildingId: null
  admin: boolean
  buildingName: string
  floorName: string
  location: any
}

export interface Role {
  createBy: null
  createTime: string
  updateBy: null
  updateTime: null
  remark: string
  roleId: number
  roleName: string
  roleKey: string
  roleSort: number
  dataScope: string
  menuCheckStrictly: boolean
  deptCheckStrictly: boolean
  status: string
  delFlag: string
  flag: boolean
  menuIds: null
  deptIds: null
  permissions: null
  admin: boolean
}

export interface Post {
  createBy: string
  createTime: string
  updateBy: null
  updateTime: null
  remark: string
  postId: number
  postCode: string
  postName: string
  postSort: number
  status: string
  flag: boolean
}
